Color Spaces
A color space defines how a color value is represented. Each color space specifies the number, order, and size of the color-component values that make up a color value in that space. QuickDraw GX recognizes 31 color spaces, defined in thegxColorSpace
enumeration:
enum gxColorSpaces{ gxNoSpace = 0, gxRGBSpace, gxCMYKSpace, gxHSVSpace, gxHLSSpace, gxYXYSpace, gxXYZSpace, gxLUVSpace, gxLABSpace, gxYIQSpace, gxNTSCSpace = gxYIQSpace, gxPALSpace = gxYIQSpace, gxGraySpace, gxIndexedSpace, gxRGBASpace = gxRGBSpace + gxAlphaSpace, gxGrayASpace = gxGraySpace + gxAlphaSpace, gxRGB16Space = gxWord5ColorPacking + gxRGBSpace, gxRGB32Space = gxLong8ColorPacking + gxRGBSpace, gxARGB32Space = gxLong8ColorPacking + gxAlphaFirstPacking + gxRGBASpace, gxCMYK32Space = gxLong8ColorPacking + gxCMYKSpace, gxHSV32Space = gxLong10ColorPacking + gxHSVSpace, gxHLS32Space = gxLong10ColorPacking + gxHLSSpace, gxYXY32Space = gxLong10ColorPacking + gxYXYSpace, gxXYZ32Space = gxLong10ColorPacking + gxXYZSpace, gxLUV32Space = gxLong10ColorPacking + gxLUVSpace, gxLAB32Space = gxLong10ColorPacking + gxLABSpace, gxYIQ32Space = gxLong10ColorPacking + gxYIQSpace, gxNTSC32Space = gxYIQ32Space, gxPAL32Space = gxYIQ32Space, }; typedef long gxColorSpace;Note that color spaces from gxRGBASpace through gxYIQ32Space use color-packing flags in their definitions. Those flags are described in the previous section, "Color Packing."The individual color spaces are described in the section "Color Spaces" beginning on page 4-6.